//
// Created by 25795 on 2023/10/2.
//

#ifndef CATKIN_WS_LINE_H
#define CATKIN_WS_LINE_H

#include "bits/stdc++.h"

using namespace std;

#define INF 10000

class Line
{
public:
    double k;
    double x1{}, y1{}, x2{}, y2{};
    double length{};

    Line();

    Line(double _k, double _x1, double _y1, double _x2, double _y2);

    bool operator<(const Line a) const
    {
        return this->length > a.length;
    }

    static bool cmp1(Line a, Line b)
    {
        return a.k > b.k;
    }

    friend ostream& operator<<(ostream& output, const Line& l);

    int get_dots() const;

private:
    double get_length() const;
};



#endif   // CATKIN_WS_LINE_H
